package com.anjiebang.utils;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by zheng on 2017/8/22.
 */
public final class MapBuilder {

    private final Map<String, Object> map;

    private MapBuilder() {
        map = new LinkedHashMap<>();
    }

    public static MapBuilder create() {
        return new MapBuilder();
    }


    public MapBuilder put(String key, Object value) {
        map.put(key, value);
        return this;
    }

    public Object get(String key) {
        return map.get(key);
    }

    public Map<String, Object> build() {
        return map;
    }
}
